import { post } from '@/server'
import { BASE_PREFIX } from '@/const'
// loading?:boolean, title?:string, showToast?:boolean
export const login = ( p = {}) => post(`${BASE_PREFIX}/auth/login`,p,{loading:true,title:"授权中",showToast:true})
